package com.qfedu.log.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qfedu.common.R;
import com.qfedu.log.dto.LogDto;
import com.qfedu.log.pojo.Log;
import com.qfedu.log.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private LogService logService;

    @GetMapping
    public R<Page<Log>> getLogs(LogDto logDto){
        return R.ok(logService.getLogs(logDto));
    }
}
